/* 
 * Copyright (C) 2013 National University of Defense Technology(NUDT) & Kylin Ltd. 
 * 
 * Authors: 
 *  Kobe Lee   kobe24_lixiang@126.com
 *
 * This program is free software; you can redistribute it and/or modify
 * it under the terms of the GNU General Public License as published by
 * the Free Software Foundation; version 3.
 *
 * This program is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 * GNU General Public License for more details.
 *
 * You should have received a copy of the GNU General Public License
 * along with this program.  If not, see <http://www.gnu.org/licenses/>.
 */

#include "activation_dbus.h"
#include <stdlib.h>
#include "log.h"
#include <syslog.h>
#include <string.h>
#include "activation_profile.h"

//后台main函数
int main(int argc, char *argv[])
{
    char *mode_string = argv[1];
    if ( (2 == argc) && (strncmp(mode_string, "--refresh-conf", strlen("--refresh-conf")) == 0) ) {
        log_msg("%s\n", "Activation profile config");
        activation_default_profile_init();
        log_msg("%s\n", "Activation profile config completed");
    } else {
        log_msg("%s\n", "Activation starting ...");
        dbus_init();
    }
}
